<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class HistoryMasterBalance extends Model
{
    protected $table = 'history_master_balance';

    const CREATED_AT = 'add_time';
    const UPDATED_AT = null;

    protected $dateFormat = 'U';

    protected $fillable = [
        'trade_id',
        'master_id',
        'direction',
        'amount',
        'current_balance',
        'new_balance',
    ];

    protected $casts = [
        'amount' => 'double',
        'current_balance' => 'double',
        'new_balance' => 'double',
    ];
}
